package com.download.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.download.web.entity.BusFriendLink;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BusFriendLinkMapper extends BaseMapper<BusFriendLink> {

    @Select("select * from bus_friend_link limit #{pageIndex},#{pageSize}")
    List<BusFriendLink> friendLinkList(@Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);

    @Select("select count(1) from bus_friend_link ")
    Integer friendLinkCount();

}
